package com.desksoft.dao;

import java.util.List;
import java.util.Map;

import javax.inject.Inject;

import com.desksoft.common.BaseDao;
import com.desksoft.entity.Category;
import com.desksoft.entity.mapper.CategoryMapper;

public class CategoryDao extends BaseDao {

	@Inject
	CategoryMapper  categoryMapper ;
	
	
	public List<Category> findByLanguageId(String languageId) {
		return categoryMapper.findByLanguageId(languageId);
	}


	/**
	 * 插入数据
	 * @param category
	 * @return
	 */
	public Integer insertSelective(Category category) {
		return categoryMapper.insertSelective(category);
	}
	public Integer deleteByPrimaryKey(String id) {
		return this.categoryMapper.deleteByPrimaryKey(id);
	}


	public Integer updateSequ(Map<String, Object> map) {
		return categoryMapper.updateSequ(map);
	}
}
